import request from './request'

export default {
    login(data) {
        return request({
            url: '/user/login',
            method: 'post',
            data
        })
    },
    register(data) {
        return request({
            url: '/user/register',
            method: 'post',
            data
        })
    },
    logout() {
        return request({
            url: '/user/logout',
            method: 'get'
        })
    },
    checkLogin() {
        return request({
            url: '/user/checkLogin',
            method: 'get'
        })
    }
}